package com.yanqu.road.entity.activity.peakstronghold.config;

public enum ePeakStrongholdErrorType {
    WaitAbility("报名期结束等待赚力上传太久", 1),
    WaitDefend("准备结束等待防守数据太久", 2),
    RoundMore("实际跑的回合超过了时间对应的回合", 3),
    ;

    private String name;

    private int intValue;

    ePeakStrongholdErrorType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public static ePeakStrongholdErrorType forValue(int value) {
        for (ePeakStrongholdErrorType type : ePeakStrongholdErrorType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

}
